﻿using System.Collections.Generic;
using System.Data;
using DAL;

namespace BLL
{
   public class TaxBiz
    {
       TaxDao taxDao = new TaxDao();
     DefDicDao defDicDao=  new DefDicDao();
       public bool Insert(SortedDictionary<string, string> sdList)
       {
           return taxDao.Insert(sdList);
       }

       public bool Update(SortedDictionary<string, string> sdList)
       {
           return taxDao.Update(sdList);
       }
       public DataTable GetOneInfo(string taxCode)
       {
           return taxDao.GetOneInfo(taxCode);
       }

       public bool DeleteOneInfo(string taxCode)
       {
           return taxDao.DeleteOneInfo(taxCode);
       }
       public bool IsExistEmpCode(string taxCode)
       {

           return taxDao.IsExistEmpCode(taxCode);
       }
       public DataTable GetLists()
       {
           return taxDao.GetLists();
       }

       public bool UpdateBegin(string beginMoney, string decreaseNum)
       {
           defDicDao.UpdateOptionValue("个税减费用额", decreaseNum);
           return defDicDao.UpdateOptionValue("个税起征点", beginMoney);

       }
       public string GetBegin()
       {
           return defDicDao.GetOptionValue("个税起征点");
       }
    }
}
